# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nbtool
pkgver=2.bf90c76
pkgrel=2
epoch=1
pkgdesc='Some tools for NetBIOS and DNS investigation, attacks, and communication.'
arch=('x86_64' 'aarch64')
url='http://wiki.skullsecurity.org/Nbtool'
license=('GPL3')
groups=('blackarch' 'blackarch-networking' 'blackarch-recon' 'blackarch-scanner')
depends=('libpcap')
makedepends=('git' 'nasm')
provides=('nbtool' 'dnscat')
source=("git+https://github.com/iagox86/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  make CFLAGS="$CFLAGS"

  sed -i "s|/usr/local/|$pkgdir/usr/|g" Makefile
}

package() {
  cd $pkgname

  make install

  install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

